import {myRequest} from './http.js';

// 获取销售订单列表
export function getOrderList(data){
	return myRequest({
		url:'/api/Supplier/getSupplierOrderList',
		method:'post',
		data:data
	})
}

// 获取销售订单详情
export function getOrderInfo(data){
	return myRequest({
		url:'/api/Supplier/getSupplierOrderDetail',
		method:'post',
		data:data
	})
}
// 获取司机列表及其详细信息
export function getDrivers(data){
	return myRequest({
		url:'/api/Supplier/getDriverList',
		method:'post',
		data:data
	})
}

// 供应商下单
export function placeOrder(data){
	return myRequest({
		url:'/api/Supplier/createPurchaseStorage',
		method:'post',
		data:data
	})
}

// 采购订单完结
export function endOrder(data){
	return myRequest({
		url:'/api/Supplier/supplierOrderComplete',
		method:'post',
		data:data
	})
}

// 上传合同
export function uploadContract(data){
	return myRequest({
		url:'/api/Supplier/uploadContract',
		method:'post',
		data:data
	})
}